<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class UserCode extends Validate
{
    protected $rule = [
        "mobile" => "require|mobile",
        "action" => "require"
    ];

    protected $message = [
        'mobile.require' => '请填写手机号',
        'mobile.mobile' => '手机号格式有误',
        'action.require' => '短信用途不能为空'
    ];
}